package judesart.app.server;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import judesart.app.client.controller.SystemController;

import com.google.appengine.api.utils.SystemProperty;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class SystemControllerImpl extends RemoteServiceServlet implements
		SystemController {
    private static final long serialVersionUID = 1L;

    private final static Log LOGGER = LogFactory.getLog(SystemControllerImpl.class);


	@Override
	public boolean isProduction() {
		return SystemProperty.environment.value() == SystemProperty.Environment.Value.Production;
	}

	@Override
	public String getApplicationVersion() {
		return SystemProperty.applicationVersion.get();
	}

}
